package cn.tedu.submarine;

import javax.swing.*;

/** 水雷 */
public class Mine extends  SeaObject {


   public Mine(int x ,int y) {
        //每个水雷的初始坐标s/y都不一样

        super(11,11,x,y,1);
    }

    @Override
   public void move() {
        y-=speed;//y-(向上)
    }
    public  ImageIcon getImage(){
       return Images.mine;
    }
    public boolean isOutOfBounds(){
        return this.y<150-height;
    }
}